USE [texchange_db]
GO

/****** Object:  UserDefinedFunction [dbo].[Fn_GetTicker]    Script Date: 05/29/2011 20:00:01 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE FUNCTION [dbo].[Fn_GetTicker] 
(	
	@lang_id  bigint
	-- Add the parameters for the function here
)
RETURNS TABLE 
AS
RETURN 
(
	-- Add the SELECT statement with parameter references here
	SELECT [id], [text], [language_id] from [Ticker]
	WHERE language_id = @lang_id
)

GO


